home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
src890906.arc
/
CMDPARSE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-18
|
861b
|
27 lines
#ifndef NARG
#define NARG 10 /* Max number of args to commands */
struct cmds {
char *name; /* Name of command */
int (*func) __ARGS((int argc,char *argv[],void *p));
/* Function to execute command */
int stksize; /* Size of stack if subprocess, 0 if synch */
int argcmin; /* Minimum number of args */
char *argc_errmsg; /* Message to print if insufficient args */
};
#ifndef NULLCHAR
#define NULLCHAR (char *)0
#endif
/* In cmdparse.c: */
int cmdparse __ARGS((struct cmds cmds[],char *line,void *p));
int subcmd __ARGS((struct cmds tab[],int argc,char *argv[],void *p));
int setbool __ARGS((int *var,char *label,int argc,char *argv[]));
int setlong __ARGS((long *var,char *label,int argc,char *argv[]));
int setshort __ARGS((unsigned short *var,char *label,int argc,char *argv[]));
#endif /* NARG */